const keys =  require('../libs/keys');
const cryptoUtil = require('../libs/crypto-util');

const text = '这是用来测试的';

const crypt = cryptoUtil.encrypt(text, keys.pubKey);

const decrypt = cryptoUtil.decrypt(crypt, keys.privKey);

console.log(decrypt.toString());